import {cell, CellGroup, CellBlock, createStore, register, store} from 'components/form'
import _message from "components/items/message";

//弹出层实例
export const message = _message()

export {
  store
}

// 弹出层表单模板
export function popupFormConfig(params) {
  const formConfig = [
    { title: "标题", required: true, input: [{id: "d-name", value: params.name, type: "text", error: '请输入标题'}] },
    { title: "价格", required: true, input: [{id: "d-price", value: params.price, type: "text"}]},
  ]
  return <CellGroup data={formConfig} store={store} />
}
